import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Show from '@/components/Show'
import test from '@/components/test'
import work from '@/components/work'

Vue.use(Router)

export default new Router({
  mode: 'history',  //去掉url中的#
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Show',
      name: 'Show',
      component: Show
    },
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/work',
      name: 'work',
      component: work
    }
  ]
})
